<?php
/**
 * Created by PhpStorm.
 * User: 挽歌
 * Date: 2021/12/6
 * Time: 10:47
 */
$old_file_name =  $_FILES['file']['name'];
$tempPath =  $_FILES['file']['tmp_name'];
move_uploaded_file($tempPath,'user/public/image/'.$old_file_name);

echo '上传成功';